1 //------------------------------------------------------------------------------
2 // <copyright file="myc.cs" company="Microsoft">
4 // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
6 // The use and distribution terms for this software are contained in the file
7 // named license.txt, which can be found in the root of this distribution.
8 // By using this software in any fashion, you are agreeing to be bound by the
9 // terms of this license.
11 // You must not remove this notice, or any other, from this software.
14 //------------------------------------------------------------------------------
20 * My simple C compiler
29 public const int MAXBUF
= 512;
30 public const int MAXSTR
= 128;
33 public static void Main()
37 String
[] args
= Environment
.GetCommandLineArgs();
38 Io prog
= new Io(args
);
39 Tok tok
= new Tok(prog
);
40 Parse p
= new Parse(prog
, tok
);
46 Console
.WriteLine("Compiler aborting: "+e
.ToString());